package com.dashan;

import com.dashan.backend.AccessControlManager.Permission;

public class Constants {
    
    // Parameters' name.
    public final static String BOUNDING_BOX = "boundingbox";        /** top, bottom, right, left */
    public final static String CENTER_POINT = "centerpoint";        /** lon, lat */
    public final static String COUNT = "count";
    public final static String CURRENT_ONLY = "currentonly";
    public final static String DATE_FROM = "datefrom";
    public final static String DATE_TO = "dateto";
    public final static String FRIENDNAME = "friendname";
    public final static String FRIEND_REQUEST_FROM = "friendrequestfrom";
    public final static String FRIEND_REQUEST_TO = "friendrequestto";
    public final static String FRIEND_REQUEST_MESSAGE = "friendrequestmessage";
    public final static String GROUPNAME = "groupname";
    public final static String NEAREST_N = "nearestn";
    public final static String NICKNAME = "nickname";
    public final static String PERMISSION = "permission";
    public final static String POSITION_ACC = "accuracy";
    public final static String POSITION_LAT = "latitude";
    public final static String POSITION_LNG = "longitude";    
    public final static String POSITION_DESC = "description";    
    public final static String PWDSHA = "pwdsha";
    public final static String RADIUS = "radius";
    public final static String RESET = "reset";
    public final static String SESSIONID = "sessionid";
    public final static String STATUS = "status";
    public final static String SALTED_PWDSHA = "saltedpwdsha";
    public final static String USER_PROFILE= "userprofile";
    public final static String USERNAME = "username";
    
    // Http servlets' response.
    public final static String SUCCESS = "Success";
    public final static String AVAILABLE = "Available";
    public final static String NOT_AVAILABLE = "NotAvailable";
    
    // Program configs.
    public final static String COORD_FORMAT = "%.6f";
    public final static String SEPERATOR = ":";
    public final static String TRUE = "true";
    public final static String FALSE = "false";
    public final static String FEMALE = "FEMALE";
    public final static String MALE = "MALE";
    public final static String SECRET = "SECRET";
    
    
    // Default Group
    public final static Long FULL_PERMISSION = -1L;
    
    public final static String PUBLIC_GROUP_NAME = "public";
    public final static Long PUBLIC_GROUP_PERMISSION = Permission.PROFILE.getPermission();
    
    public final static String ALL_FRIEND_GROUP_NAME = "All Friend";
    public final static Long ALL_FRIEND_GROUP_PERMISSION = -1L;
    
    public final static String DEFAULT_STATUS = "I love Dashan~";
    
    
    // Client-side constants
    public final static String COOKIE_NAME = "dashan-net";
    public final static long ONE_MONTH_MS = 2629743830L;
    public final static int MAP_HEIGHT = 800;
}
